include "BaseService.thrift"

namespace cpp imserver
namespace java me.vzhi.connectionManager

service ConnectionManagerService extends BaseService.BaseService {
  map<i64, string> GetCometServiceKeyByUids(1: set<i64> uids);
  string AllocateCometServiceForUid(1: i64 uid);
  void RemoveCometServiceKeyByUids(1: set<i64> uids);
  void SetValidCometServiceForUid(1: i64 uid, 2: string server_key);
  
  map<i64, string> GetSockServiceKeyByUids(1: set<i64> uids);
  string AllocateSockServiceForUid(1: i64 uid);
  void RemoveSockServiceKeyByUids(1: set<i64> uids);
  void SetValidSockServiceForUid(1: i64 uid, 2: string server_key);
}

